package com.myspringmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/restOpr")
@Controller
public class RestController {
    @DeleteMapping("delOpr")
    public String delOpr(){
        System.out.println("执行了删除操作~~~");
        return "success";
    }
    @PutMapping("putOpr")
    public String putOpr(){
        System.out.println("执行了更新操作~~~");
        return "success";
    }
    @GetMapping("getOpr")
    public String queryOpr(){
        System.out.println("执行了查询操作~~~");
        return "success";
    }
    @PostMapping("addOpr")
    public String addOpr(){
        System.out.println("执行了添加操作~~~");
        return "success";
    }
}
